import Mock from "mockjs";

export default {
  test_echarts: () => {
    //  初始化echarts
    var xAxisData = [];
    var data1 = [];
    var data2 = [];
    for (var i = 0; i < 100; i++) {
      xAxisData.push("类目" + i);
      data1.push((Math.sin(i / 5) * (i / 5 - 10) + i / 6) * 5);
      data2.push((Math.cos(i / 5) * (i / 5 - 10) + i / 6) * 5);
    }

    return {
      status: { message: "成功", code: "0" },
      data: {
        xAxisData,
        data1,
        data2
      }
    };
  }
};
